<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>

<%@page import="com.ag.bean.TbEventGrade,com.ag.bean.TbUser"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!-- 工程分析 -->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'analyse.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
	<link rel="stylesheet" type="text/css" href="wzp/css/eventaccept.css">
	<style type="text/css">
		.area td{ height:26; background-color:#FFF; text-align:left;}
		.areaUtil{ background-image:url("tab/images/tab_14.gif");padding-left:20px;}
		.button{border:none;height:26; background:url("wzp/images/blue.png");}
		.clickbutton{height:26; background-image:url("images/tab_item.jpg");}
	</style>

		<link rel="stylesheet" type="text/css" href="/ag/wzp/css/eventaccept.css">
	<link rel="stylesheet" type="text/css" href="/ag/wzp/css/popup.css">
	<link type="text/css" href="/ag/css/dialog/jquery.ui.all.css"
			rel="stylesheet" />
		<script type="text/javascript" src="/ag/js/dialog/jquery-1.4.2.js"></script>
		<script type="text/javascript"
			src="/ag/css/dialog/jquery.bgiframe-2.1.1.js"></script>
		<script type="text/javascript" src="/ag/js/dialog/jquery.ui.core.js"></script>
		<script type="text/javascript" src="/ag/js/dialog/jquery.ui.widget.js"></script>
		<script type="text/javascript" src="/ag/js/dialog/jquery.ui.mouse.js"></script>
		<script type="text/javascript" src="/ag/js/dialog/jquery.ui.button.js"></script>
		<script type="text/javascript"
			src="/ag/js/dialog/jquery.ui.draggable.js"></script>
		<script type="text/javascript"
			src="/ag/js/dialog/jquery.ui.position.js"></script>
		<script type="text/javascript"
			src="/ag/js/dialog/jquery.ui.resizable.js"></script>
		<script type="text/javascript" src="/ag/js/dialog/jquery.ui.dialog.js"></script>
		<script type="text/javascript"
			src="/ag/js/dialog/jquery.effects.core.js"></script>
		<script type="text/javascript"
			src="/ag/zhh/content/js/loadEventAndProposeDetail.js"></script>
		<script type="text/javascript"
			src="/ag/zhh/content/js/enter_chat.js"></script>
			
			<script type="text/javascript">
			//alert("cool");
			</script>
  </head>
  
  <body>
 <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td height="30"><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="15" height="30"><img src="wzp/images/tab_03.gif" width="15" height="30" /></td>
        <td width="100%" background="wzp/images/tab_05.gif">
        	<img src="wzp/images/311.gif" width="16" height="16" /> 
        	事件与预案详细记录表 <span style="margin-left: 50px"><a href="/ag/work/reportTable.jsp?mode=command">查看呈批详情</a></span></td>
        <td width="14"><img src="wzp/images/tab_07.gif" width="14" height="30" /></td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td><table width="100%" border="0" cellpadding="0"  cellspacing="0" >
      <tr>
        <td width="9" background="wzp/images/tab_12.gif">&nbsp;</td>
        <td bgcolor="#dceffd">
          <table  width="99%" border="0" align="center" cellpadding="1" cellspacing="1" bgcolor="#84b1d3" >
          <thead>
          <tr class="trtab">
            <td class="tdtab" width="33%"><span class="tdspan">事件编号：</span><span id="eventId"></span>
			</td>
            <td class="tdtab" width="34%"><span class="tdspan">事件状态：</span><span id="eventStatus"></span>
            </td>
            <td class="tdtab" width="33%">
            </td>
          </tr>
          <tr class="trtab">
            <td class="tdtab" width="33%"><span class="tdspan">报送方式：</span><span id="source"></span>
			</td>
            <td class="tdtab" width="34%"><span class="tdspan">联系方式：</span><span id="submiterContact"></span>
            </td>
            <td class="tdtab" width="33%"><span class="tdspan">报送时间：</span><span id="submitTime"></span>
            </td>
          </tr>
           <tr class="trtab">
            <td class="tdtab" width="33%"><span class="tdspan">报送人：</span><span id="submiter"></span>
            </td>
            <td class="tdtab" width="34%"><span class="tdspan">报送部门：</span><span id="submitDept"></span>
            </td>
            <td class="tdtab" width="33%"><span class="tdspan">接报人：</span><span id="accepter"></span>
			</td>
          </tr>
          <tr class="trtab">
          	 
            <td class="tdtab" width="33%"><span class="tdspan">事发地点：</span><span id="place"></span>
			</td>
            <td class="dou tdtab" width="34%"><span class="tdspan">经度：</span><span></span>
            </td>
            <td class="sample5 tdtab" width="33%"><span class="tdspan">纬度：</span><span style="padding-left:32;"></span>
            </td>
          </tr>
          <tr class="trtab">
            <td class="tdtab" width="33%"><span class="tdspan">事发时间：</span><span id="happenedTime"></span>
			</td>
            <td class="tdtab" width="34%"><span class="tdspan">事件名称：</span><span id="eventName"></span>
            </td>
            <td class="tdtab" width="33%"><span class="tdspan">事件类型：</span><span id="eventType"></span>
            </td>
          </tr>
          <tr class="trtab">
            <td class="num tdtab" width="33%"><span class="tdspan">死亡人数：</span><span id="death"></span>
			</td>
            <td class="num tdtab" width="34%"><span class="tdspan">受伤人数：</span><span id="injured"></span>
            </td>
             
            <td class="tdtab" width="33%"><span class="tdspan">事件等级：</span><span id="eventLevel"></span>
            </td>
          </tr>
          <!-- <tr class="trtab">
            <td class="num tdtab" width="33%"><span class="tdspan">总指挥：</span><span id="commander"></span>
			</td>
            <td class="num tdtab" width="34%"><span class="tdspan">指挥长：</span><span id="viceCommander"></span>
            </td>
             
            <td class="tdtab" width="33%"><span class="tdspan">查控组组长：</span><span id="teamLeader"></span>
            </td>
          </tr>
           <tr class="trtab">
            <td class="num tdtab" width="33%"><span class="tdspan">实施应急预案部门：</span><span id="implementPlan"></span>
			</td>
            <td class="num tdtab" width="34%"><span class="tdspan">协助部门：</span><span id="assistDept"></span>
            </td>
             
            <td class="tdtab" width="33%"><span class="tdspan"></span>
            </td>
          </tr> -->
          <tr class="trtab">
		  	<td class="tdtab2" colspan="3">
				<span style="float: left; padding-top:20; width:104;text-align:right" >事件原因：</span>
		  		<span class="textAeraRight" id="cause">
				</span>
			</td>
		  </tr>
		  <tr class="trtab">
		  	<td class="tdtab2" colspan="3">
		  		<span style="float: left; padding-top:20; width:104;text-align:right" >事件描述：</span>
		  		<span class="textAeraRight" id="eventDesc">
				</span>
			</td>
		  </tr>
		  <tr class="trtab">
		  	<td class="tdtab2" colspan="3">
		  		<span style="float: left; padding-top:20;width:104;text-align:right">已采取措施：</span>
		  		<span class="textAeraRight" id="measure">
				</span>
			</td>
		  </tr>
		  <!--  <tr id="mackupArea"><td colspan="3">
		  	<table class='area' width="100%" border="0" align="center" cellpadding="0" cellspacing="0" >
		    	<tr><td class="tdtab2 areaUtil" >事件补充  <img id="mackup_down" alt="" src="wzp/images/arrow_down_24.gif">
		    			<img style="display:none"  id="mackup_up" alt="" src="wzp/images/arrow_up_24.gif"></td></tr>
		    	<tr><td bgcolor="#dceffd">
	          			<table id="mackups" style="display:none" width="100%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#84b1d3" >           					
	        			</table>
	        		</td>
 			  	</tr>
		  	</table>
		  </td>
		  </tr>-->
		  <tr id="propose_detail"><td colspan="3">
		  	<table class='area' width="100%" border="0" align="center" cellpadding="0" cellspacing="0" >
		    	<tr><td class="tdtab2 areaUtil" >当前处理人员部门</td></tr>
		    	<tr><td bgcolor="#dceffd">
	          			<table id="proposeDetail" width="100%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#84b1d3" >    
	          			<tr class="trtab">
            				<td class="tdtab" width="33%"><span class="tdspan">总指挥：</span><span id="commander"></span>
							</td>
           					<td class="tdtab" width="34%"><span class="tdspan">指挥长：</span><span id="viceCommander"></span>
           					</td>
            				<td class="tdtab" width="33%"><span class="tdspan">查控组组长：</span><span id="teamLeader"></span>
           					</td>
         				</tr>    					
	          			<tr class="trtab">
            				<td class="tdtab" width="33%"><span class="tdspan">实施应急预案部门：</span><span id="implementPlan"></span>
							</td>
           					<td class="tdtab" width="34%"><span class="tdspan">协助部门：</span><span id="assistDept"></span>
           					</td>
            				<td class="tdtab" width="33%"><span class="tdspan" style="display: none">呈批时间：</span><span id="time"></span>
           					</td>
         				</tr>    	
         				<!-- <tr class="trtab">
		  					<td class="tdtab2" colspan="3">
								<span style="float: left; padding-top:20; width:104;text-align:right" >呈批内容：</span>
		  						<span class="textAeraRight" id="content">
								</span>
							</td>
		  				</tr>				
         				<tr class="trtab">
		  					<td class="tdtab2" colspan="3">
								<span style="float: left; padding-top:20; width:104;text-align:right" >带班领导意见：</span>
		  						<span class="textAeraRight" id="leaderSuggestion">
								</span>
							</td>
		  				</tr> -->				
	        			</table>
	        		</td>
 			  	</tr>
		  	</table>
		  </td>
		  </tr>
		  <!-- <tr id="planStander"><td colspan="3">
		  	<table class='area' width="100%" border="0" align="center" cellpadding="0" cellspacing="0" >
		    	  <tr><td class="tdtab2 areaUtil" >预案启动标准</td></tr>
		    	<tr><td bgcolor="#dceffd">
	          			<table id="mackups" width="100%" border="1" align="center" cellpadding="0" cellspacing="1" bgcolor="#84b1d3" >   
	          			 <!--<tr class="trtab">
            				<td class="tdtab" width="33%"><span class="tdspan">标准条目:</span><span id="planEntry"></span>
							</td>
         				</tr>    	 
         				<tr class="trtab">
		  					<td class="tdtab2" colspan="3">
								<span style="float: left; padding-top:20; width:104;text-align:right" >标准内容：</span>
		  						<span class="textAeraRight" id="planStanderContent">
								</span>
							</td>
		  				</tr>		--
		  				<tr>
		  					<td id="planStanderdContainer">
		  					</td>
		  				</tr>	      					
	        			</table>
	        		</td>
 			  	</tr>
		  	</table>
		  </td>
		  </tr>
		  <tr class="trtab">
            	<td class="tdtab" colspan="3" style="text-align: center"><button id="enter_chat" style="height:30px">进入统一会商平台</button><span id="implementPlan"></span>
				</td>
           					
         </tr>    	 -->
		 <!--  <tr class="trtab">
          	<td colspan="3" align="center">
          		<%TbEventGrade eventGrade = (TbEventGrade)request.getAttribute("eventGrade");
          		if( eventGrade == null){ %>
          		  <input type="button" value="事件等级变更" class="button" id="eventUpGradeButton"/> <%}else { %>
          		  <input type="button" value="事件等级变更审核" class="button" id="eventUpGradeAuditButton"/><%} %> 		
          	</td >
      </tr> -->
<%--		   <tr id="auditArea"><td colspan="3">--%>
<%--		  	<table class='area' width="100%" border="0" align="center" cellpadding="0" cellspacing="0" >--%>
<%--		    	<tr><td class="tdtab2 areaUtil" >事件等级审核  <img id="audit_down" alt="" src="wzp/images/arrow_down_24.gif">--%>
<%--		    			<img style="display:none"  id="audit_up" alt="" src="wzp/images/arrow_up_24.gif"></td></tr>--%>
<%--		    	<tr><td bgcolor="#dceffd">--%>
<%--	          			<table id="audits" style="display:none" width="100%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#84b1d3" >           					--%>
<%--	        			</table>--%>
<%--	        		</td>--%>
<%-- 			  	</tr>--%>
<%--		  	</table>--%>
<%--		  </td></tr>--%>
		  </thead>
      
  <tr id="DAArea" style="display:none" ><td colspan="3">
  <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
   
  <tr>
    <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
       <td bgcolor="#dceffd">
          <table id="das" width="100%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#84b1d3" >
          <tr><td id="DAAreaHead">
    </td></tr>
           <tr><td id="DAAreaUtil" >
        </td></tr>
        <tr><td id="DAAreaBody" > 
          </td></tr>
        </table></td>
       </tr>
       </table></td>
   </tr>
  </table>
  </td></tr>
        </table></td>
        <td width="9" background="/ag/wzp/images/tab_16.gif">&nbsp;</td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td height="29">
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="15" height="29"><img src="/ag/wzp/images/tab_20.gif" width="15" height="29" /></td>
        <td width="100%" background="/ag/wzp/images/tab_21.gif" align="center">
        <br><td width="14"><img src="/ag/wzp/images/tab_22.gif" width="14" height="29" /></td>
      </tr>
    </table></td>
  </tr>
</table>
<% if( eventGrade == null){ %>
<div id="eventUpGradeDiv" title="事件等级变更">
	<table>
		<tr>
			<td>原事件等级：</td><td>${event.tbEventLevel.elEventLevel}<td>
		</tr>
		<tr>
			<td>新事件等级：</td><td><span><select id="newLevelId">
			<c:forEach var='level' items='${eventLevels}' varStatus='status'>
				<option value=${level.elId } >
				${level.elEventLevel}
				</option>
			</c:forEach>
			</select></span><td>
		</tr>
		<tr>
			<td>申请人：</td><td><span>${user.UName}</span><td>
		</tr>
		<tr>
			<td valign="top">申请意见：</td><td><textarea id="applyContent" rows="5" cols="25" name="applyContent"></textarea></td>
		</tr>
	</table>
</div>
<% }else{ %>
<div id="eventUpGradeAuditDiv" title="事件等级变更审核">
	<table>
		<tr>
			<td>原事件等级：<input type="hidden" id="egId" value="<%=eventGrade.getEgId() %>"></input></td><td>${event.tbEventLevel.elEventLevel}<td>
		</tr>
		<tr>
			<td>新事件等级：</td><td><c:forEach var='level' items='${eventLevels}' varStatus='status'>
				${eventGrade.egNgrade==level.elId?level.elEventLevel:""}
			</c:forEach><td>
		</tr>
		<tr>
			<td valign="top">申请意见：</td><td><textarea id="applyContent" rows="5" cols="25" name="applyContent" readonly="readonly"><%=eventGrade.getEgReqResion() %></textarea></td>
		</tr>
		<tr>
			<td>申请时间：</td>
			<td><span style="font-size:12px"><%=eventGrade.getEgReqTime() %></span><td>
		</tr>
		<tr>
			<td>审核人：</td>
			<td><span>${user.UName }</span><td>
		</tr>
		<tr>
			<td>是否审核通过：</td><td><input type="checkbox" id="egAgree"></input></td>
		</tr>
		<tr>
			<td valign="top">审核意见：</td><td><textarea id="auditContent" rows="5" cols="25" name="applyContent"></textarea></td>
		</tr>
	</table>
</div>
<%} %>
<div id="message" title="提示框">

</div>
<div class="planStanderdModel" style="display: none;margin-bottom: 20px">
	<span class="tdspan" style="border-bottom: 1px solid #84b1d3;width:100%;text-align:left;">标准条目:<span class="planEntry"></span></span>
	<span style="float: left; padding-top:20; width:104;text-align:left" >标准内容：</span>
	<span class="textAeraRight" class="planStanderContent"></span>
</div>
  </body>
  <script type="text/javascript" src="zhh/js/analyse.js"></script> 
</html>
